let mysql      = require('mysql');
let connection = mysql.createConnection({
  host     : 'localhost',
  user     : 'root',
  password : 'root',
  database : 'test'
});
// connection.connect();
module.exports=connection;
// connection.query('SELECT * FROM student', function (error, results, fields) {
//     if (error) throw error;
//     console.log( results[0]);
//   });
//   connection.end();